﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FAQFrameworks;
using DTOFrameworks;
using FooFun.DataElements.Dtos;

namespace FooFun.Web.Controls
{
    public class TopicViewControl : DataElementControl
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            Guid topicId = FAQContext.Current.TopicId;

            TopicManager topicManager = new TopicManager();
            IDataElement topic = topicManager.GetElement(topicId);

            base.DataElement = topic;
        }
    }
}
